#ifndef _USECASE_DECODER_H_
#define _USECASE_DECODER_H_

#if defined (__cplusplus)
    extern "C" {
#endif

#define DECODER_MAX_CHN  9

/* video */

#define TSK_UDP_RECV_VID(ptr, id)  do{ \
                                    char str[32]; \
                                    snprintf(str, sizeof(str), "tsk_udp_recv_vid_%d", id); \
                                    ptr = str; \
                                }while(0)

#define TSK_RTP_UNPACK(ptr, id)  do{ \
                                    char str[32]; \
                                    snprintf(str, sizeof(str), "tsk_rtp_unpack_%d", id); \
                                    ptr = str; \
                                }while(0)

#define TSK_HISI_DEC_SEND_STREAM(ptr, id)  do{ \
                                                char str[32]; \
                                                snprintf(str, sizeof(str), "tsk_hisi_send_stream_%d", id); \
                                                ptr = str; \
                                            }while(0)

#define TSK_UDP_RECV_VID_0             "tsk_udp_recv_vid_0"
#define TSK_RTP_UNPACK_0               "tsk_rtp_unpack_0"
#define TSK_HISI_DEC_SEND_STREAM_0    "tsk_hisi_send_stream_0"

#define TSK_UDP_RECV_VID_1             "tsk_udp_recv_vid_1"
#define TSK_RTP_UNPACK_1               "tsk_rtp_unpack_1"
#define TSK_HISI_DEC_SEND_STREAM_1    "tsk_hisi_send_stream_1"

#define TSK_UDP_RECV_VID_2             "tsk_udp_recv_vid_2"
#define TSK_RTP_UNPACK_2               "tsk_rtp_unpack_2"
#define TSK_HISI_DEC_SEND_STREAM_2    "tsk_hisi_send_stream_2"

#define TSK_UDP_RECV_VID_3             "tsk_udp_recv_vid_3"
#define TSK_RTP_UNPACK_3               "tsk_rtp_unpack_3"
#define TSK_HISI_DEC_SEND_STREAM_3    "tsk_hisi_send_stream_3"

#define TSK_UDP_RECV_VID_4             "tsk_udp_recv_vid_4"
#define TSK_RTP_UNPACK_4               "tsk_rtp_unpack_4"
#define TSK_HISI_DEC_SEND_STREAM_4    "tsk_hisi_send_stream_4"

#define TSK_UDP_RECV_VID_5             "tsk_udp_recv_vid_5"
#define TSK_RTP_UNPACK_5               "tsk_rtp_unpack_5"
#define TSK_HISI_DEC_SEND_STREAM_5    "tsk_hisi_send_stream_5"

#define TSK_UDP_RECV_VID_6             "tsk_udp_recv_vid_6"
#define TSK_RTP_UNPACK_6               "tsk_rtp_unpack_6"
#define TSK_HISI_DEC_SEND_STREAM_6    "tsk_hisi_send_stream_6"

#define TSK_UDP_RECV_VID_7             "tsk_udp_recv_vid_7"
#define TSK_RTP_UNPACK_7               "tsk_rtp_unpack_7"
#define TSK_HISI_DEC_SEND_STREAM_7    "tsk_hisi_send_stream_7"

#define TSK_UDP_RECV_VID_8             "tsk_udp_recv_vid_8"
#define TSK_RTP_UNPACK_8              "tsk_rtp_unpack_8"
#define TSK_HISI_DEC_SEND_STREAM_8    "tsk_hisi_send_stream_8"

#define TSK_HISI_DEC_VPSS_CTL        "tsk_hisi_vpss_ctl"


int32_t decoder_start(od_framework_t * framework);
int32_t decoder_stop(od_framework_t * framework);


#if defined (__cplusplus)
    }
#endif

#endif


/*_*/

